package com.nageoffer.jobtrain.projects.service.handler.question.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Oj题目业务实体类
 * author：唐晨
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class OjQuestionPageDTO {
    /**
     * oj题主键id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 题目标题
     */
    private String title;

    /**
     * 题目难度；0：简单，1：中等，2：困难
     */
    private Integer difficulty;

    /**
     * 是否通过该道题标识 0：未通过；1：通过
     */
    private Integer pass;
}
